import { http } from "@/utils/axios";
export default {
  // 药品列表
  drugList: (params) => {
    return http.get("drug/list", params);
  },
  // 药品分类列表
  classifyList: () => {
    return http.get("drug/classifyList");
  },
  // 药品品牌列表
  brandList: () => {
    return http.get("drug/brandList");
  },
  // 新增药品信息
  addDrug: (params) => {
    return http.post("drug/add", params);
  },
  // 编辑药品信息
  editDrug: (params) => {
    return http.post("drug/edit", params);
  },
  // 删除药品
  delDrug: (params) => {
    return http.del("drug/del", params);
  },
  upload: (params,data) => {
    console.log('file',params)
    return http.post("upload", params, data);
  },
};
